package Students;

public class Student {
    private String name;
    private int age;
    private String sex;
    private  String telephone;
    private  int number;
    public Student(){

    }

    public Student(String name, int age, String sex, String telephone, int number) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.telephone = telephone;
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
    public void String(){
        System.out.println("姓名："+getName()+"\t 年龄："+getAge()+"\t 性别："+getSex()
                +"\t 联系方式："+getTelephone()+"\t 学号："+getNumber());
    }
}
